/**
 * 检测是否为http或https开头的资源链接
 * @param {string} origin - 资源链接
 */
export const isOriginSource = (origin = '') => {
    const regex = /^https?:\/\//;
    return regex.test(origin);
};
